<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopClassBusinTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('shop_class_busin', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('city_id',4)->comment('城市id');
            $table->integer('first_class_id',4)->comment('一级分类id');
            $table->integer('second_class_id',4)->comment('二级分类id');
            $table->string('logo', 255)->comment('分类logo');
            $table->integer('sort',4)->default(0)->comment('排序');
            $table->string('name', 255)->comment('banner名称');
            $table->integer('status',4)->comment('是否生效1：生效、0：失效');
            $table->integer('admin_id')->comment('操作人id');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('shops_class_busin');
    }
}
